package com.luoling.oa.oaSync.domian;


import com.alibaba.fastjson.JSONObject;

/**
 * Description:
 * Copyright:   Copyright (c)2024
 * Company:
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2024-12-18 10:30:18
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2024-12-18     张李鑫                     1.0         1.0 Version
 */
public class Response {


    public static String success() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("state", 0);
        jsonObject.put("message", "success");
        return jsonObject.toJSONString();
    }


    public static String error() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("state", 1);
        jsonObject.put("message", "error");
        return jsonObject.toJSONString();
    }
}
